package com.lkd.controller;

import com.lkd.dto.ReportDto;
import com.lkd.entity.Role;
import com.lkd.service.IRoleService;
import com.lkd.service.ITaskService;
import com.lkd.vo.Result;
import com.lkd.vo.TaskVVo;
import com.lkd.vo.TaskVo;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/user-service/task")
public class TaskController {

    @Autowired
    private ITaskService taskService;

    @GetMapping("taskReportInfo")
    public Result taskReportInfo(ReportDto reportDto){
        List<TaskVVo> taskList =taskService.taskReportInfo(reportDto);
        return Result.success(taskList);
    }





}
